<template>
  <button class="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors"
    @click="$emit('click', $event)">
    <slot />
  </button>
</template>

<script setup lang="ts">
// 组件逻辑（可选）
</script>